<label for="<?php echo $filterName ?>"><?php echo $title ?></label>
<input type="text" name="<?php echo $filterName ?>" value="<?php echo $formatedValue ?>"/>

<script>
$(document).ready(function() {
  $("input[name=<?php echo $filterName ?>]").datetimepicker({ timeFormat:'hh:mm:ss', showSecond:true });
});
</script>